function calculate(uint a, uint b) public pure returns(uint)
{
return a*b;
}
function destroyContract() public {
if (msg.sender == owner) {
selfdestruct(owner);
}
}
}
A. No issues at all. The code would run and give the desired
output.
B. The code would run but always would give 0 as output
C. The code would throw an error as the contract is destroyed
already
D. None of these
Q113: Which of the following use cases would work best on
Ethereum?
A. e-Voting
B. P2P Lending
C. e-Auction
D. All of the above
Q114: Why is Ethereum the default choice for Decentralized
finance?
A. High Scalability
B. High Performance
C. No intermediaries and cost effective
D. Low learning curve
Q115: What is the main issue with Ethereum to build an e-Voting
DApps with PoW consensus?